import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../views/Index.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('../views/Testtt.vue')
  },
  {
    path: '/moviescript/:name',
    name: 'movie',
    component: () => import('../views/Movie_script.vue'),
  },
  {
    path: '/movieword/:name',
    name: 'movie',
    component: () => import('../views/Movie_word.vue'),
  },
  {
    path: '/phrase',
    name: 'movie',
    component: () => import('../views/Phrase.vue'),
  },
  {
    path: '/Movie_list',
    name: 'Movie_word_list',
    component: () => import('../views/Movie_list.vue'),
  },
  {
    path: '/localStorage',
    name: 'localStorage',
    component: () => import('../views/LocalStorage.vue'),
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
